#!/bin/bash

echo "启动 Kafka 集群..."
docker-compose up -d

echo "等待服务启动..."
sleep 30

echo "检查服务状态..."
docker-compose ps

echo ""
echo "Kafka 服务已启动!"
echo "- Kafka Broker: localhost:9092"
echo "- Zookeeper: localhost:2181"
echo "- Kafka UI: http://localhost:8080"
echo ""
echo "常用命令:"
echo "  停止服务: docker-compose down"
echo "  查看日志: docker-compose logs -f"
echo "  重启服务: docker-compose restart"